#include "stdafx.h"
#include "GrabDemo.h"
#include "DlgNodeList.h"
#include <convert.h>
#include <fgcamera.h>

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

BEGIN_MESSAGE_MAP(CGrabDemoApp, CWinApp)
	//{{AFX_MSG_MAP(CGrabDemoApp)
	//}}AFX_MSG
	ON_COMMAND(ID_HELP, CWinApp::OnHelp)
END_MESSAGE_MAP()

CGrabDemoApp::CGrabDemoApp()
{
}

CGrabDemoApp theApp;

BOOL CGrabDemoApp::InitInstance()
{
	pDlgNodeList=new CDlgNodeList;
        if(!pDlgNodeList)
         return FALSE;

        m_pMainWnd=pDlgNodeList;

        // Init our convert tables here
        InitTables();

	// Register our camera window class
        m_pFrameClassName=AfxRegisterWndClass(0,0,0,LoadIcon(IDI_CAMFRAME));
        
	
        return TRUE;
}

int CGrabDemoApp::Run()
{
  pDlgNodeList->DoModal();
  delete pDlgNodeList;
   
  return 0;
}

